import request from '@/utils/request'

// 查询次日航班计划列表
export function listMorrowflightplan(query) {
  return request({
    url: '/dyn/morrowflightplan/list',
    method: 'get',
    params: query
  })
}

// 查询次日航班计划详细
export function getMorrowflightplan(planid) {
  return request({
    url: '/dyn/morrowflightplan/' + planid,
    method: 'get'
  })
}

// 新增次日航班计划
export function addMorrowflightplan(data) {
  return request({
    url: '/dyn/morrowflightplan',
    method: 'post',
    data: data
  })
}

// 修改次日航班计划
export function updateMorrowflightplan(data) {
  return request({
    url: '/dyn/morrowflightplan',
    method: 'put',
    data: data
  })
}

// 删除次日航班计划
export function delMorrowflightplan(planid) {
  return request({
    url: '/dyn/morrowflightplan/' + planid,
    method: 'delete'
  })
}
